package order

import (
	//"bee/models"
	//"github.com/go-resty/resty/v2"
	//"net/http"
	//"strings"
)

// khmc账号名称， zzzh卡号
func SetCash(khmc, zzzh, appNamespace string) error {
	return nil
	//appName := "nbgl2"
	//uri := "/nbgl2Web/swgl/saveHkzzInfoAction.do"
	//
	//cashData := make(map[string]string)
	//cashData["skf"] = "1"
	//cashData["khmc"] = khmc
	//cashData["zzzh"] = zzzh
	//cashData["backUrl"] = ""
	//cashData["zzje"] = "10000000.00"
	//cashData["zzrq"] = "2020-07-15"
	//cashData["jtgs"] = "1"
	//cashData["xhfId"] = "100121"
	//
	//appId, appErr:= models.GetAppIdByName(appName)
	//if appErr != nil {
	//	return appErr
	//}
	//
	//appEnv, envErr:= models.GetAppEnvInfo(appId, appNamespace)
	//if envErr != nil {
	//	return envErr
	//}
	//
	//host := appEnv.AppDomain
	//if !strings.HasPrefix(host, "http://") {
	//	host = "http://" + host
	//}
	//
	//client := resty.New()
	//_, err := client.R().SetCookie(&http.Cookie{
	//	Name:       "JSESSIONID",
	//	Value:      appEnv.Cookie,
	//	Path:       "/nbgl2Web/",
	//	Domain:     appEnv.AppDomain,
	//}).SetFormData(cashData).Post(host + uri)
	//
	//if err != nil {
	//	return err
	//}
	//
	//return nil
}